package cn.edu.gzu.user.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyWebMvnConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("file/video/**").addResourceLocations("file:F:\\android-project\\file\\video\\");
        registry.addResourceHandler("file/image/**").addResourceLocations("file:F:\\android-project\\file\\image\\");
    }
}
